package com.qf.java2201.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author yjl
 * @version 1.0
 * @date 2022/4/26 14:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Back {
    private Integer back_id;  // 主键 反馈编号
    private Integer b_phone; //  联系方式
    private String b_con; //  反馈内容

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date b_time; //  反馈时间

    private String b_picture;

    public Back(Integer b_phone, String b_con) {
        this.b_phone = b_phone;
        this.b_con = b_con;
    }
}
